import React, { Component } from 'react';
import {Route, BrowserRouter, Switch} from 'react-router-dom';
import Login from './busi/login';
import Main from './busi/main';
import Math from './busi/math';
import Pyshell from './busi/pyshell';
import Food from './busi/food';
import FoodType from './busi/foodType';
import DateRemind from './busi/dateRemind';
import Pwd from './busi/pwd';
import Role from './busi/role';
import User from './busi/user';
import Personal from './busi/personal';
import RubikCube from './busi/rubikCube';
import QueryBdndFile from './busi/queryBdndFile';
import QueryQQmailnp from './busi/queryQQmailnp';

class App extends Component {
  render() {
    return (
      <div>
      <BrowserRouter>
        <Switch>
          <Route exact path='/' component={Main} />
          <Route path='/main' component={Main} />
          <Route path='/login' component={Login} />
          <Route path='/math' component={Math} />
          <Route path='/pyshell' component={Pyshell} />
          <Route path='/food' component={Food} />
          <Route path='/foodType' component={FoodType} />
          <Route path='/dateRemind' component={DateRemind} />
          <Route path='/pwdQuery' component={Pwd} />
          <Route path='/role' component={Role} />
          <Route path='/user' component={User} />
          <Route path='/personal' component={Personal} />
          <Route path='/rubikCube' component={RubikCube} />
          <Route path='/queryBdndFile' component={QueryBdndFile} />
          <Route path='/queryQQmailnp' component={QueryQQmailnp} />
        </Switch>
      </BrowserRouter>
      </div>
    );
  }
}
export default App;
